package com.open.capacity.reimburse.service;

import com.open.capacity.reimburse.entity.BasePayItemAttach;

import com.open.capacity.commons.PageResult;
import com.open.capacity.reimburse.entity.BasePayItemForm;

import java.util.Map;
import java.util.List;

/**
 * 支出事项-附件清单
 *
 * @author
 * @email
 * @date 2023-11-23 15:47:42
 */
public interface BasePayItemAttachService {
    /**
     * 添加
     *
     * @param basePayItemAttach
     */
    int save(BasePayItemAttach basePayItemAttach);

    /**
     * 修改
     *
     * @param basePayItemAttach
     */
    int update(BasePayItemAttach basePayItemAttach);

    /**
     * 删除
     *
     * @param id
     */
    int delete(String id);


    /**
     * 查询记录
     *
     * @param id
     * @return
     */
    BasePayItemAttach findById(String id);


    /**
     * 根据支出事项查询附件
     *
     * @param payitemId
     * @return
     */
    List<BasePayItemAttach> findByPayitemId(String payitemId, String category);

    /**
     * 列表
     *
     * @param payitemIds
     * @return
     */
    List<BasePayItemAttach> findByPayitemIds(String payitemIds, String category);

    /**
     * 分页
     *
     * @param params
     * @return
     */
    PageResult<BasePayItemAttach> pageAll(Map<String, Object> params);

    /**
     * 列表
     *
     * @param params
     * @return
     */
    List<BasePayItemAttach> findAll(Map<String, Object> params);


}

